#!/usr/bin/env bash

set -e

declare -A IMAGES
IMAGES[gocli]="gocli@sha256:22586076428b7d285c7bfc6cfab50be2f7e4b69ad0f643bc598d1ab2f76ba116"
if [ -z $KUBEVIRTCI_PROVISION_CHECK ]; then
    IMAGES[k8s-fedora-1.17.0]="k8s-fedora-1.17.0@sha256:aebf67b8b1b499c721f4d98a7ab9542c680553a14cbc144d1fa701fe611f3c0d"
    IMAGES[k8s-1.19]="k8s-1.19@sha256:f6a7f58600a620f61100a7a18d585d3b7b18d3ce4f931a74457d1b28fd3fa134"
    IMAGES[k8s-1.18]="k8s-1.18@sha256:e04cb801703ea7d746dfcadfdf592d9b751b7e79b3f8bbcf088e3cf59c0a9729"
    IMAGES[k8s-1.17]="k8s-1.17@sha256:56b69451e1b07ab1e0afd4f51214a653b846ce8e5d48ae417f9ef747dfcf3ffb"
    IMAGES[k8s-1.16]="k8s-1.16@sha256:6906eda9a84fb3469d742b638ea2e2e6871a6abdfda98129dcd9f058562f114c"
    IMAGES[k8s-1.15]="k8s-1.15@sha256:c58cb9d79968590f24e070bc2517088d44fa2f83ba73e989a7e0f690ad08460b"
    IMAGES[k8s-1.14]="k8s-1.14@sha256:46e449b292dcb420f0944cac0a7a5c667c6f19bba2a4192737380e8e77f27ed0"
fi
export IMAGES

image="${IMAGES[$KUBEVIRT_PROVIDER]:-${KUBEVIRT_PROVIDER}${IMAGE_SUFFIX}:latest}"
export image
